package com.webside.front.common.mapper;
 

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.webside.base.basemapper.BaseMapper;
import com.webside.front.common.model.BSeries;
import com.webside.front.common.model.VideoFromWeb;
 
 

public interface VideoFromWebMapper extends BaseMapper<VideoFromWeb, Long> {
	
	/**
	 * 根据条件返回集合
	 * 条件可传入
	 * channel, status, source, bind_id 
	 * bind_status, recommend_level
	 * pageSize
	 * @param condition
	 * @return
	 */
	List<VideoFromWeb> selectWebVideoByCondition(Map<String, Object> condition);
	
	int selectCountByCondition(Map<String, Object> condition);
	
	
	List<VideoFromWeb> selectByPrimaryTrailer();
	VideoFromWeb selectVideoById(@Param("id")Long id);
	Integer addPlayCount(VideoFromWeb videoFromWeb);
	Integer addLikeCount(VideoFromWeb videoFromWeb);
	List<VideoFromWeb> queryByBind(@Param("bindId")Integer bindId,@Param("id")Integer id);
	
	
}